import request from "@/router/axios";

export const getTopicList = (current, size, params) => {
  return request({
    url: "/api/blade-measure/measure/gaugesubject/list",
    method: "get",
    params: {
      ...params,
      current,
      size
    }
  });
};

export const getTopicListByGaugetId = params => {
  return request({
    url: "/api/blade-measure/measure/gaugesubject/listAllByGaugetId",
    method: "get",
    params: {
      ...params
    }
  });
};

export const getTopic = params => {
  return request({
    url: "/api/blade-measure/measure/gaugesubject/info",
    method: "get",
    params: {
      ...params
    }
  });
};

export const saveTopic = params => {
  return request({
    url: "/api/blade-measure/measure/gaugesubject/save",
    method: "post",
    data: {
      ...params
    }
  });
};

export const updateTopic = params => {
  return request({
    url: "/api/blade-measure/measure/gaugesubject/update",
    method: "post",
    data: {
      ...params
    }
  });
};

export const deleteTopic = params => {
  return request({
    url: "/api/blade-measure/measure/gaugesubject/remove",
    method: "post",
    params: {
      ...params
    }
  });
};
